import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 打印图形
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-04-17  22:12
 */
public class Test3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()) {
            int a = in.nextInt();
            for (int i = 0; i < a; i++) {
                for (int j = 0; j < a; j++) {
                    if ((i == j) || i + j == (a-1)) {
                        System.out.print("*");
                    }else {
                        System.out.print(" ");
                    }
                }
                System.out.println();
            }
        }

    }
}
